package com.model;

import java.util.HashSet;
import java.util.Set;

/**
 * AddressVO entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Address implements java.io.Serializable {

	// Fields

	private Long addressId;
	private Users usersDTO;
	private String addrname;
	private String username;
	private Integer isprimary;
	private String province;
	private String zipcode;
	private String selfaddress;
	private String tel;
	private String mobile;
	private Integer markfordelete;
	@SuppressWarnings("unchecked")
	private Set orderses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Address() {
	}

	/** minimal constructor */
	public Address(Users usersDTO, String addrname, String username,
			Integer isprimary) {
		this.usersDTO = usersDTO;
		this.addrname = addrname;
		this.username = username;
		this.isprimary = isprimary;
	}

	/** full constructor */
	@SuppressWarnings("unchecked")
	public Address(Users usersDTO, String addrname, String username,
			Integer isprimary, String province, String zipcode,
			String selfaddress, String tel, String mobile,
			Integer markfordelete, Set orderses) {
		this.usersDTO = usersDTO;
		this.addrname = addrname;
		this.username = username;
		this.isprimary = isprimary;
		this.province = province;
		this.zipcode = zipcode;
		this.selfaddress = selfaddress;
		this.tel = tel;
		this.mobile = mobile;
		this.markfordelete = markfordelete;
		this.orderses = orderses;
	}

	// Property accessors

	public Long getAddressId() {
		return this.addressId;
	}

	public void setAddressId(Long addressId) {
		this.addressId = addressId;
	}

	public Users getUsers() {
		return this.usersDTO;
	}

	public void setUsers(Users usersDTO) {
		this.usersDTO = usersDTO;
	}

	public String getAddrname() {
		return this.addrname;
	}

	public void setAddrname(String addrname) {
		this.addrname = addrname;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getIsprimary() {
		return this.isprimary;
	}

	public void setIsprimary(Integer isprimary) {
		this.isprimary = isprimary;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getSelfaddress() {
		return this.selfaddress;
	}

	public void setSelfaddress(String selfaddress) {
		this.selfaddress = selfaddress;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getMarkfordelete() {
		return this.markfordelete;
	}

	public void setMarkfordelete(Integer markfordelete) {
		this.markfordelete = markfordelete;
	}

	@SuppressWarnings("unchecked")
	public Set getOrderses() {
		return this.orderses;
	}

	@SuppressWarnings("unchecked")
	public void setOrderses(Set orderses) {
		this.orderses = orderses;
	}

}